module.exports = () => ({
  'presets': [
    '@babel/preset-react',
    ['@babel/preset-env', {
      targets: {
        chrome: '53',
        firefox: '29',
      },
      modules: false,
    }],
  ],
  'plugins': [
    ['babel-plugin-import', {
      'libraryName': 'antd',
      'style': true,
    }],
    ['babel-plugin-react-scoped-css', {
      'include': '.local.(sa|sc|c)ss$',
    }],
    'react-hot-loader/babel',
    ['@babel/transform-runtime', {
      corejs: 3,
      useESModules: true,
    }],
  ],
});
